package com.wl.dzt.sys.util;

import java.util.HashMap;
import java.util.Map;

/**
 * @author wl_code@163.com
 * @version 1.0
 * @date 2018/6/6/006
 * @description 描述
 */
public class ResponseMsg {

    private static Map<String, String> map = new HashMap<>();

    static {
        map.putAll(ResourceUtils.loadProperties("response-msg.properties"));
    }

    /**
     * 消息状态码,参见error-msg.properties
     *
     * @param key
     * @return
     */
    public static String getMsg(String key) {
        return map.get(key) == null ? key : map.get(key);
    }
}
